﻿package com.sxhalo.manage.web.form;

import java.util.List;

public class ModulesForm {
	private Integer moduleId;
	private String moduleName;
	private String moduleCode;
	private String modulePath;
	private String moduleClass;
	private Integer moduleParent;
	private Integer moduleApp;
	private String moduleDescription;
	private Integer moduleSort;
	private Integer moduleIsdisable;
	private String operationIds;
	private List<OperationForm> operation;
	private List<ModulesForm> children;

	public Integer getModuleId() {
		return moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getModuleCode() {
		return moduleCode;
	}

	public void setModuleCode(String moduleCode) {
		this.moduleCode = moduleCode;
	}

	public String getModulePath() {
		return modulePath;
	}

	public void setModulePath(String modulePath) {
		this.modulePath = modulePath;
	}

	public String getModuleClass() {
		return moduleClass;
	}

	public void setModuleClass(String moduleClass) {
		this.moduleClass = moduleClass;
	}

	public Integer getModuleParent() {
		return moduleParent;
	}

	public void setModuleParent(Integer moduleParent) {
		this.moduleParent = moduleParent;
	}

	public Integer getModuleApp() {
		return moduleApp;
	}

	public void setModuleApp(Integer moduleApp) {
		this.moduleApp = moduleApp;
	}

	public String getModuleDescription() {
		return moduleDescription;
	}

	public void setModuleDescription(String moduleDescription) {
		this.moduleDescription = moduleDescription;
	}

	public Integer getModuleSort() {
		return moduleSort;
	}

	public void setModuleSort(Integer moduleSort) {
		this.moduleSort = moduleSort;
	}

	public Integer getModuleIsdisable() {
		return moduleIsdisable;
	}

	public void setModuleIsdisable(Integer moduleIsdisable) {
		this.moduleIsdisable = moduleIsdisable;
	}
	
	public String getOperationIds() {
		return operationIds;
	}

	public void setOperationIds(String operationIds) {
		this.operationIds = operationIds;
	}

	public List<OperationForm> getOperation() {
		return operation;
	}

	public void setOperation(List<OperationForm> operation) {
		this.operation = operation;
	}

	public List<ModulesForm> getChildren() {
		return children;
	}

	public void setChildren(List<ModulesForm> children) {
		this.children = children;
	}
	
	public boolean equals(Object obj) {

		boolean flag = obj instanceof ModulesForm;
		if (flag == false) {
			return false;
		}
		ModulesForm module = (ModulesForm) obj;
		if (this.getModuleId().equals(module.getModuleId())) {
			return true;
		} else {
			return false;
		}
	}
}
